import Vue from 'vue'

import VueRouter from "vue-router";
import ElementUI from 'element-ui';
import routerObj from "./router"
import MainPageComponent from "@/page/MainPageComponent";


Vue.config.productionTip = false;
Vue.use(VueRouter);
Vue.use(ElementUI);

let baseVue = new Vue({
  render: h => h(MainPageComponent),
  router: routerObj
});
baseVue.$mount('#learnApp').$router.push("/Login");

export function getBaseVue(){
  return baseVue;
}